<?php /* Smarty version Smarty-3.0.8, created on 2012-11-04 03:36:39
         compiled from "F:\Zend Debug\workForYangtzeu\administrator/template\fileManager.list.center.html" */ ?>
<?php /*%%SmartyHeaderCode:2249950952404de5e80-13571317%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '63e561106536fc541a2c34bea48a4259410b976a' => 
    array (
      0 => 'F:\\Zend Debug\\workForYangtzeu\\administrator/template\\fileManager.list.center.html',
      1 => 1352000048,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2249950952404de5e80-13571317',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<style>
	span.pList{
		border: 1px solid #aaa;
		margin: 5px 8px 2px 5px;
		border-radius: 5px;
		background: #e8e8e8;
	}
	span.pList.selected{
		background:#83ADEE;
	}
	span.pList:hover {
		background: #ccc;
		cursor: pointer;
	}
</style>
<div class="content-box">
	<!-- Start Content Box -->
	<div class="content-box-header">
		<h3>文章分类管理</h3>
	</div>
	<!-- End .content-box-header -->
	<!-- Start .content-box-content -->
	<div class="content-box-content">
			<!-- elfinder 主体部分  -->
			<meta charset="utf-8">
			<script src="assets/jquery/jquery.js" type="text/javascript" charset="utf-8"></script>
			<script src="assets/jquery/jquery-ui-1.8.23.custom.min.js" type="text/javascript" charset="utf-8"></script>
			<link rel="stylesheet" href="assets/jquery/ui-themes/smoothness/jquery-ui-1.8.23.custom.css" type="text/css" media="screen" title="no title" charset="utf-8">
			<link rel="stylesheet" href="assets/css/common.css" type="text/css">
			<link rel="stylesheet" href="assets/css/dialog.css" type="text/css">
			<link rel="stylesheet" href="assets/css/toolbar.css" type="text/css">
			<link rel="stylesheet" href="assets/css/navbar.css" type="text/css">
			<link rel="stylesheet" href="assets/css/statusbar.css" type="text/css">
			<link rel="stylesheet" href="assets/css/contextmenu.css" type="text/css">
			<link rel="stylesheet" href="assets/css/cwd.css" type="text/css">
			<link rel="stylesheet" href="assets/css/quicklook.css" type="text/css">
			<link rel="stylesheet" href="assets/css/commands.css" type="text/css">
			<link rel="stylesheet" href="assets/css/fonts.css" type="text/css">
			<link rel="stylesheet" href="assets/css/theme.css" type="text/css">
			<!-- elfinder core -->
			<script src="assets/js/elFinder.js"></script>
			<script src="assets/js/elFinder.version.js"></script>
			<script src="assets/js/jquery.elfinder.js"></script>
			<script src="assets/js/elFinder.resources.js"></script>
			<script src="assets/js/elFinder.options.js"></script>
			<script src="assets/js/elFinder.history.js"></script>
			<script src="assets/js/elFinder.command.js"></script>
			<!-- elfinder ui -->
			<script src="assets/js/ui/overlay.js"></script>
			<script src="assets/js/ui/workzone.js"></script>
			<script src="assets/js/ui/navbar.js"></script>
			<script src="assets/js/ui/dialog.js"></script>
			<script src="assets/js/ui/tree.js"></script>
			<script src="assets/js/ui/cwd.js"></script>
			<script src="assets/js/ui/toolbar.js"></script>
			<script src="assets/js/ui/button.js"></script>
			<script src="assets/js/ui/uploadButton.js"></script>
			<script src="assets/js/ui/viewbutton.js"></script>
			<script src="assets/js/ui/searchbutton.js"></script>
			<script src="assets/js/ui/sortbutton.js"></script>
			<script src="assets/js/ui/panel.js"></script>
			<script src="assets/js/ui/contextmenu.js"></script>
			<script src="assets/js/ui/path.js"></script>
			<script src="assets/js/ui/stat.js"></script>
			<script src="assets/js/ui/places.js"></script>
			<!-- elfinder commands -->
			<script src="assets/js/commands/back.js"></script>
			<script src="assets/js/commands/forward.js"></script>
			<script src="assets/js/commands/reload.js"></script>
			<script src="assets/js/commands/up.js"></script>
			<script src="assets/js/commands/home.js"></script>
			<script src="assets/js/commands/copy.js"></script>
			<script src="assets/js/commands/cut.js"></script>
			<script src="assets/js/commands/paste.js"></script>
			<script src="assets/js/commands/open.js"></script>
			<script src="assets/js/commands/rm.js"></script>
			<script src="assets/js/commands/info.js"></script>
			<script src="assets/js/commands/duplicate.js"></script>
			<script src="assets/js/commands/rename.js"></script>
			<script src="assets/js/commands/help.js"></script>
			<script src="assets/js/commands/getfile.js"></script>
			<script src="assets/js/commands/mkdir.js"></script>
			<script src="assets/js/commands/mkfile.js"></script>
			<script src="assets/js/commands/upload.js"></script>
			<script src="assets/js/commands/download.js"></script>
			<script src="assets/js/commands/edit.js"></script>
			<script src="assets/js/commands/quicklook.js"></script>
			<script src="assets/js/commands/quicklook.plugins.js"></script>
			<script src="assets/js/commands/extract.js"></script>
			<script src="assets/js/commands/archive.js"></script>
			<script src="assets/js/commands/search.js"></script>
			<script src="assets/js/commands/view.js"></script>
			<script src="assets/js/commands/resize.js"></script>
			<script src="assets/js/commands/sort.js"></script>
			<script src="assets/js/commands/netmount.js"></script>
			<script src="assets/js/commands/auth.js"></script>
			<!-- elfinder languages -->
			<script src="assets/js/i18n/elfinder.zh_CN.js"></script>
			<!-- elfinder dialog -->
			<script src="assets/js/jquery.dialogelfinder.js"></script>
			<!-- elfinder 1.x connector API support -->
			<script src="assets/js/proxy/elFinderSupportVer1.js"></script>
			<!-- elfinder custom extenstions -->
			<script src="extensions/jplayer/elfinder.quicklook.jplayer.js"></script>
			<style type="text/css">
body {
	font-family: arial, verdana, sans-serif;
}

.button {
	width: 100px;
	position: relative;
	display: -moz-inline-stack;
	display: inline-block;
	vertical-align: top;
	zoom: 1;
	*display: inline;
	margin: 0 3px 3px 0;
	padding: 1px 0;
	text-align: center;
	border: 1px solid #ccc;
	background-color: #eee;
	margin: 1em .5em;
	padding: .3em .7em;
	border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	cursor: pointer;
}

form {
	margin: 25px 0px 25px;
}

form input.text {
	margin-bottom: 12px;
	padding: 0.4em;
	width: 95%;
}
/*
		#dialog {
			position:absolute;
			left:50%;
			top:1000px;
		}
*/
</style>
			<script>
				$()
						.ready(
								function() {
									el = $('#finder')
											.elfinder(
													{
														requestType : 'post',
														url : 'http://10.202.1.109/workForYangtzeu/administrator/index.php?c=connector',
														handlers : {
															select : function(
																	event,
																	elfinderInstance) {
																var selected = event.data.selected;
																if (selected.length) {
																}
															}
														},
														lang : 'zh_CN',
														customData : {
															answer : 42
														},
														commands : [ 'open',
																'reload',
																'home', 'up',
																'back',
																'forward',
																'getfile',
																'quicklook',
																'download',
																'rm',
																'duplicate',
																'rename',
																'mkdir',
																'mkfile',
																'upload',
																'copy', 'cut',
																'paste',
																'edit',
																'extract',
																'archive',
																'search',
																'info', 'view',
																'help',
																'resize',
																'sort',
																'netmount',
																'auth' ],

														contextmenu : {
															// navbarfolder menu
															navbar : [
																	'open',
																	'|',
																	'copy',
																	'cut',
																	'paste',
																	'duplicate',
																	'|', 'rm',
																	'|', 'info' ],
															// current directory menu
															cwd : [ 'reload',
																	'back',
																	'|',
																	'upload',
																	'mkdir',
																	'mkfile',
																	'paste',
																	'|',
																	'sort',
																	'|', 'info' ],
															// current directory file menu
															files : [
																	'getfile',
																	'|',
																	'open',
																	'quicklook',
																	'|',
																	'download',
																	'|',
																	'copy',
																	'cut',
																	'paste',
																	'duplicate',
																	'|', 'rm',
																	'|',
																	'edit',
																	'rename',
																	'resize',
																	'|',
																	'archive',
																	'extract',
																	'|',
																	'info',
																	'auth' ]
														},
													});//.getElFinder().bind('mkdir', mkdir);

								});
				// 				mkdir = function(e, elfinder) {
				// 					alert("ok");
				// 					window.console.log(e, elfinder);

				// 					if ((typeof e.data.error == 'undefined')
				// 							&& !(typeof e.data.added == 'undefined')) {
				// 						for ( var folder in e.data.added) {
				// 							//window.console.log(folder);
				// 							if_album(e.data.added[folder]);
				// 						}
				// 					}
				// 				}
				// 				if_album = function(folder) {
				// 					window.console.log(folder);
				// 					$('#dialogAlbum').dialog({
				// 						width: 350,
				// 						modal: true,
				// 						buttons : {
				// 							"确定" : function() {
				// 								alert("album 确定 单击了!!!");
				// 								$.ajax({
				// 									url:"http://10.202.1.109/workForYangtzeu/administrator/index.php?c=pcategory&a=add",
				// 									type:"POST",
				// 									async:false,
				// 									data:$('#album_form').serialize() + 'file='+folder.hash+'&amp;' + 'pdir=' + folder.phash,
				// 									dataType:"json",
				// 									success: function(e){
				// 								}		
				// 								});
				// 								//$('#album_form').submit();
				// 							},
				// 							"取消" : function() {
				// 								$(this).dialog("close");
				// 							}
				// 						}
				// 					}).css('display', 'block');
				// 					alert("album test ok!!!");
				// 				}
			</script>
			<div id="finder">
				finder <span>here</span>
			</div>
			<div id="dialogAlbum" title="创建新的相册" style="display: none;">
				<form action="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'pcategory','a'=>'add'),$_smarty_tpl);?>
" id="album_form">
					<label for="name">相册标题</label> <input type="text" class="text ui-widget-content ui-corner-all" name="name" placeholder="这里是相册的标题" /> <label for="content">相册描述</label>
					<textarea class="text ui-widget-content ui-corner-all" name="content" placeholder="这里是相册的相关描述信息"></textarea>
				</form>
			</div>
			<div id="dialogPrivilege" style="display: none;" title="请选择相应的权限规则"></div>
			<script type="text/javascript">
// 				$('#dialogPrivilege').dialog();
				$.ajax({
					url : '<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'privilegeManager','a'=>'pList'),$_smarty_tpl);?>
',
					type : 'POST',
					dataType : 'html',
					success : function(e) {
						$('#dialogPrivilege').bind('click',function(e){
							window.console.log(e);
							if(e.target.className == "pList" && e.target.tagName.toLowerCase() == "span")
								target = e.target;
// 								$('#dialogPrivilege').trigger("p_choice",[$(target).attr('pid'),$(target).text()]);
								$(target).siblings().removeClass('selected');
								$(target).addClass('selected');
// 								alert('click');
						});
						$('#dialogPrivilege').html(e);
					}
				});
// 				$('span.pList').bind('click',$(this).attr('pid'),function(e){
// 					window.console.log(e);
// 					alert('click');
// 				});
			</script>
			<div class="clear"></div>
			</body>
	</div>
	<!-- End .content-box-content -->
</div>
<!-- End .content-box -->